package com.baidu.jiuhao.es.rsp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class DocumentRsp {

    private String doc_id;

    private String space_id;


    private String title;

    private String content;

    private List<Tag> tags;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date update_time;

    private Integer total_view_count;

    private Integer daily_view_count;

    private Integer weekly_view_count;

    private Integer monthly_view_count;

    // 嵌套的权限标签类
    @Data
    public static class Tag {
        private String area;

        private String product;

        private String language;

        private String secret_level;

        private String channel;

        private String object;

        private String business_attribute;

    }
}
